import './globals.css'
import Layout from '../components/Layout'
import ErrorBoundary from '../components/ErrorBoundary'
import NotificationProvider from '../components/NotificationProvider'
import { AuthProvider } from '../contexts/AuthContext'

export const metadata = {
    title: '医学影像处理工具集成展示平台',
    description: '专业的医学影像处理工具集成平台，提供多种医学影像的处理、分析、诊断辅助工具',
}

export default function RootLayout({ children }) {
    return (
        <html lang="zh">
            <body>
                <ErrorBoundary>
                    <NotificationProvider>
                        <AuthProvider>
                            <Layout>{children}</Layout>
                        </AuthProvider>
                    </NotificationProvider>
                </ErrorBoundary>
            </body>
        </html>
    )
}